package com.telit.firecommand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * comm_roaming_line
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommRoamingLine implements Serializable {

    @ApiModelProperty(value="主键")
    @TableId(type= IdType.AUTO)
    private Long id;

    /**
     * 漫游名称
     */
    @ApiModelProperty(value = "漫游名称")
    @NotBlank(message = "漫游名称不能为空")
    private String name;

    /**
     * 漫游内容
     */
    @ApiModelProperty(value = "漫游内容")
    private String content;

    /**
     * 漫游点数
     */
    @ApiModelProperty(value = "漫游点数")
    private String roamPointCount;

    /**
     * 漫游时间,单位秒
     */
    @ApiModelProperty(value = "漫游时间")
    private String roamTime;

    /**
     * 漫游长度
     */
    @ApiModelProperty(value = "漫游长度")
    private String roamLength;

    /**
     * 漫游高度
     */
    @ApiModelProperty(value = "漫游高度")
    private Integer roamHigh;

    /**
     * 漫游速度，慢速，中速，快速
     */
    @ApiModelProperty(value = "漫游速度")
    private String speed;

    /**
     * 漫游点集合
     */
    @ApiModelProperty(value = "漫游点集合")
    private String pointCollection;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "是否删除，1是，0是否")
    @TableLogic(value = "0", delval = "1")
    private String deleted;

    @ApiModelProperty(value = "创建人姓名")
    @TableField(exist = false)
    private String createUserName;

    @ApiModelProperty(value = "创建人角色")
    @TableField(exist = false)
    private String createUserRole;

    private static final long serialVersionUID = 1L;
}